<template>
  <div>
    <el-space>
      <el-button @click="changeTheme">切换主题</el-button>
    </el-space>
  </div>
</template>

<script setup lang="ts">
defineOptions({ name: 'HeaderBar' })
const changeTheme = () => {
  const themeLink = document.getElementById('cq-theme') as HTMLLinkElement
  themeLink.href = './src/styles/dark.scss'
}
</script>

<style lang="scss"></style>
